package com.idc.config.security.login.username_password;

import org.springframework.security.authentication.AbstractAuthenticationToken;

/**
 * @author Trump
 * @version 1.0.0
 * @ClassName MobileCodeAuthenticationToken.java
 * @Description 用户名密码登录 token
 * @createTime 2019年08月15日 11:24:00
 */
public class UsernameAuthenticationToken extends AbstractAuthenticationToken {


    private String loginAcct;
    private String password;

    public UsernameAuthenticationToken(String loginAcct, String password) {
        super(null);
        this.loginAcct = loginAcct;
        this.password = password;
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return null;
    }

    public String getLoginAcct() {
        return loginAcct;
    }

    public void setLoginAcct(String loginAcct) {
        this.loginAcct = loginAcct;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
